<template>
    <div class="app-container">
        <admin-home v-if="isAdmin" />
        <normal-home v-else />
    </div>
</template>
<script setup name="HomeModule">
import { computed } from 'vue'
import AdminHome from './AdminHome.vue'
import NormalHome from './NormalHome.vue'
import { useUserinfoStore } from '@iframe/tools/store/index.js'

const userinfoStore = useUserinfoStore()
const userinfo = userinfoStore.getUserinfo

const isAdmin = computed(() => {
    return userinfo.isAdmin === 1 || userinfo.isAdmin === 2
})
</script>
